<?php
class QAAction extends BaseAction{
	
	function index(){
		
		$token = $_REQUEST['token'];
		$openid = $_REQUEST['openid'];
		
		if(empty($token)){
			echo '错误的访问!';
			return ;
		}
		
		$where['token'] = $token;
		$qas = M('question_info')->where($where)->select();
		
		$this->assign('token',$token);
		$this->assign('openid',$openid);
		$this->assign('qas', $qas);
		
		$this->display();
	}
	
}